<template>
  <router-view/>
  <van-tabbar route>
    <van-tabbar-item replace to="/house" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item icon="comment-o" to="/message">消息</van-tabbar-item>
    <van-tabbar-item icon="user-circle-o" :to="userInfo.account==''?'/login':'me'">我的</van-tabbar-item>
</van-tabbar>
</template>

<script>
export default {
  created () {
    this.userInfo=this.$store.state.userInfo
  },
  data () {
    return {
      userInfo:{}
    }
  },
  methods: {
    ser(){
      this.$router.push({path:"/about"})
    }
  }
}
</script>

<style lang="scss">
.search{
  padding: 0;
}
</style>
